﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace mesoBoard.Web.Models
{
    public class SQLInstallViewModel
    {
        [Required(ErrorMessage="Enter a SQL server address")]
        [DisplayName("SQL server address")]
        public string SQLServerAddress { get; set; }

        [Required(ErrorMessage = "Enter a database name")]
        [DisplayName("Database name")]
        public string DatabaseName { get; set; }

        [DefaultValue(false)]
        [DisplayName("Use default credentials")]
        public bool SQLUseDefaultCredentials { get; set; }

        [Required(ErrorMessage = "Enter a server login")]
        [DisplayName("Login")]
        public string SQLLogin { get; set; }

        [Required(ErrorMessage = "Enter SQL server login password")]
        [DisplayName("Password")]
        public string SQLPassword { get; set; }
    }
}